package com.sptpc.stu.common.exception;

import com.sptpc.stu.common.response.impl.Status;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * GlobalException
 * 业务异常类
 * @author alexchen
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class BusinessException extends BaseException {

    public BusinessException(Status status) {
        super(status);
    }

    public BusinessException(Status status, Object data) {
        super(status, data);
    }

    public BusinessException(String message) {
        super(500, message);
    }

    public BusinessException(Integer code, String message) {
        super(code, message);
    }

    public BusinessException(Integer code, String message, Object data) {
        super(code, message, data);
    }
}
